<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>首页</title>
	</head>
	<body>
		<script src="js/mui.js"></script>
		<script src="js/jquery-3.1.0.js"></script>
		<script src="html/js/tools.js"></script>
		<script src="js/util.js"></script>
		<script type="text/javascript">
			(function() {
				if (window.plus) {
					plusReady();
				} else {
					document.addEventListener('plusready', plusReady, false);
				}
				
				function plusReady() {
					// 判断是否有token,如果无则打开跳转登录
					var token  = localStorage.getItem("user_id");
					
					if (token == null || token == '') {
						mui.openWindow({
							url: "html/login.html",
							id: "html/login.html",
							show: {
								autoShow: true, //页面loaded事件发生后自动显示，默认为true
								aniShow: "slide-in-bottom", //页面显示动画，默认为”slide-in-right“；
							}
						})
					}
					
					
				}

			})();
		</script>
	</body>

</html>
